package com.itheima.project.hystrix;

import com.itheima.project.basic.ResponseWrap;
import com.itheima.project.core.enums.dict.DataDictEnum;
import com.itheima.project.feign.DataDictFeign;
import com.itheima.project.utils.ResponseWrapBuild;
import com.itheima.project.vo.dict.DataDictVo;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName DataDictHystrix.java
 * @Description DataDictFeign的Hystrix处理
 */
@Component
public class DataDictHystrix implements DataDictFeign {

    @Override
    public ResponseWrap<List<DataDictVo>> findDataDictVoByParentKey(String parentKey) {
        return ResponseWrapBuild.build(DataDictEnum.FIND_PARENTKEY_ALL,null);
    }

    @Override
    public ResponseWrap<DataDictVo> findDataDictVoByDataKey(String dataKey) {
        return ResponseWrapBuild.build(DataDictEnum.FIND_DATADICTVO_DATAKEY,null);
    }

    @Override
    public ResponseWrap<List<DataDictVo>> findValueByDataKeys(ArrayList<String> dataKeys) {
        return ResponseWrapBuild.build(DataDictEnum.FIND_DATADICTVO_DATAKEY,null);
    }
}
